/*
 * @Descripttion: 
 * @version: 
 * @Author: Zuo
 * @Date: 2021-09-29 09:59:53
 * @LastEditors: Zuo
 * @LastEditTime: 2021-09-30 11:17:19
 */
import "ant-design-vue/dist/antd.css"
import { App } from "vue"

import {
    DatePicker,
    Input,
    Layout,
    LayoutHeader,
    LayoutSider,
    LayoutFooter,
    LayoutContent,
    Breadcrumb,
    BreadcrumbItem,
    Menu,
    MenuItem,
    SubMenu,
    Button,
    Switch,
    Radio,
    RadioGroup,
    Select,
    SelectOption,
    Checkbox,
    CheckboxGroup,
    Spin,
    Form,
    FormItem,
    InputPassword,
    Card,
    Popconfirm,
    Table,
    Dropdown
} from "ant-design-vue"

const __ANTD__ = [
    DatePicker,
    Input,
    Layout,
    LayoutHeader,
    LayoutSider,
    LayoutFooter,
    LayoutContent,
    Breadcrumb,
    BreadcrumbItem,
    Menu,
    MenuItem,
    SubMenu,
    Button,
    Switch,
    Radio,
    RadioGroup,
    Select,
    SelectOption,
    Checkbox,
    CheckboxGroup,
    Spin,
    Form,
    FormItem,
    InputPassword,
    Card,
    Popconfirm,
    Table,
    Dropdown
]

export default {
    install: (vm: App<any>) => {
        __ANTD__.forEach(componentItem => vm.component(componentItem.name, componentItem))
    }
};

